//
//  ZFLTestView.m
//  iOSAppDevRepo_Example
//
//  Created by 翁胜琼 on 2019/7/20.
//  Copyright © 2019 折疯了. All rights reserved.
//

#import "ZFLTestView.h"

@interface ZFLTestView()

@property (nonatomic,strong) WSQViewModel *viewModel;

@end

@implementation ZFLTestView

- (instancetype)initWithframe:(CGRect)frame viewModel:(__kindof WSQViewModel *)viewModel
{
    self.viewModel = viewModel;
    NSLog(@"self = %@",self);
    if(self = [super initWithframe:frame viewModel:viewModel])
    {
        NSLog(@"self = %@",self);
    }
    return self;
}

- (void)bindViewModel
{
    NSLog(@"%s","s");
}

// MARK: - setupUI
- (void)setupUI
{
    [super setupUI];
    
    [self setupSubView];
}

- (void)setupSubView
{
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 30, 40)];
    [self addSubview: view];
    view.backgroundColor = green_color;
}
@end
